package com.atgg.beans;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class Dog {
    public Dog() {
        System.out.println("dog construct>>>>>>>>>");
    }

// 初始化
    @PostConstruct
    public void init (){
        System.out.println("init>>>>>> dog");
    }
    //容器移除bean之前
    @PreDestroy
    public void destroy(){
        System.out.println("dog>>>>>destroy");
    }
}
